package cn.demographic.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;


import cn.demographic.util.FamtDate;
/**
 * 登录注册实体类
 * @author Administrator
 *
 */

public class Registry {
	private Integer id;
	
    private String phone;

    
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    private Date entertime;
    private String enterTime;
    
    private String password;

    private String name;
    
    private String unit;

    private Integer liveId;

    private Integer permissionsId;

    private Integer state;
    
    /**
     * 关联地址信息
     */
    private Live live;
    private Permissions permissions;
    
	public Permissions getPermissions() {
		return permissions;
	}

	public void setPermissions(Permissions permissions) {
		this.permissions = permissions;
	}

	public Live getLive() {
		return live;
	}

	public void setLive(Live live) {
		this.live = live;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Date getEntertime() {
		return entertime;
	}
    
	public void setEntertime(Date entertime) {
		this.entertime = entertime;
	}

	
	public String getEnterTime() {
		return FamtDate.fordate(entertime);
	}
	public void setEnterTime(String enterTime) {
		this.enterTime = enterTime;
	}

	public String getUnit() {
		return unit;
	}

	public void setUnit(String unit) {
		this.unit = unit;
	}

	public Integer getLiveId() {
		return liveId;
	}

	public void setLiveId(Integer liveId) {
		this.liveId = liveId;
	}

	public Integer getPermissionsId() {
		return permissionsId;
	}

	public void setPermissionsId(Integer permissionsId) {
		this.permissionsId = permissionsId;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

   
}